package com.diapoclic.servlet;

import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;

import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.diapoclic.entitybean.User;
import com.diapoclic.entitymanager.UserManager;


public class PhotosServlet extends HttpServlet {
	
	public void doGet(HttpServletRequest request, HttpServletResponse response)						
											throws IOException, ServletException{
		
		
		Cookie[] cookies = request.getCookies();
    	HashMap map = new HashMap();
    	//S'il y a au moins un cookie, on stocke les cl�s-valeurs dans une Map
    	if (cookies != null) {
    		for (Cookie cookie : cookies) {
     			map.put(cookie.getName(), cookie.getValue());
    		}
    	}
    	
    		
		request.getRequestDispatcher("photos.jsp").forward(request, response);


		
	}
	
	
		
		
	public void doPost(HttpServletRequest request, HttpServletResponse response)						
											throws IOException, ServletException{
		doGet(request, response);
		
		
		
		
		
	}
	

}
